package com.gimi.cloud.jimi.commonService.InterfacePlatform;

import org.apache.http.Header;

/**
 * 接口平台Token
 * @author lilinfeng
 */
public interface InterfacePlatformTokenService {
	
	/**
	 * 获取接口平台TOKEN
	 * @return
	 * @throws Exception
	 */
	String getInterfacePlatformToken() throws Exception;
	
	/**
	 * 获取Redis中的接口平台TOKEN
	 * @return
	 * @throws Exception 
	 */
	String getTokenInRedis() throws Exception;
	
	/**
	 * 获取接口平台API地址
	 * @return
	 * @throws Exception 
	 */
	String getApiUrl() throws Exception;

	/**
	 * 获取携带Token的请求头
	 * @return
	 * @throws Exception
	 */
	Header[] getCarryTokenHeader() throws Exception;
}